﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Smart.Model
{
    public class FrameData : IPooledOnPut
    {
        public void OnPut()
        {
            frameComponent = null;
            resourceComponent = null;
            frameBundle = null;
            bundleName = string.Empty;
            assetName = string.Empty;
            layer = 0;
            onFrameLoaded = null;
            onFrameVisible = null;
            onFrameDestroy = null;
            argv = null;
        }

        public UI.FrameComponent frameComponent;
        public UI.ResourceComponent resourceComponent;
        public AssetBundle frameBundle;
        public string bundleName;
        public string assetName;
        public int layer;
        public System.Action<FrameData> onFrameLoaded;
        public System.Action onFrameVisible;
        public System.Action onFrameDestroy;
        public object argv;
    }
}